// 个人中心页面样式 - 从微信小程序转换为Vue3
.personal-container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'SourceHanSansCN-Medium', sans-serif;
  min-height: 100vh;
  width: 750px;
  background-color: #f5f5f5;
}

.top {
  height: 214px; // 428rpx / 2
  width: 100%;
  background-image: url('https://www.finoview.com.cn/images/applet/peoplebg.png');
  background-size: 100% 100%;
  box-sizing: border-box;
}

.main {
  
  &.noLogin {
    margin-top: -80px; // -160rpx / 2
  }
}

.schedule-wrapper {
  position: relative;
}

.morericheng {
  width: 100%;
  height: auto;
}

.date-befor {
  left: 21px !important; // 42rpx / 2
}

.date-after {
  right: 20px !important; // 40rpx / 2
}

.calendar-panel-box,
.calendar-header {
  font-size: 14px; // 28rpx / 2
  font-family: 'SourceHanSansCN-Medium', sans-serif;
  font-weight: 500;
}

.calendar-header .lanse {
  color: #3e7ee1 !important;
}

.calender-body-date-week {
  padding: 2.5px 0; // 5rpx / 2
}

.date {
  font-size: 14px; // 28rpx / 2
  font-family: 'SourceHanSansCN-Regular', sans-serif;
  color: #333333 !important;
  width: 28px !important; // 56rpx / 2
  height: 28px !important; // 56rpx / 2
  line-height: 28px !important; // 56rpx / 2
  margin: 0 8.5px; // 17rpx / 2
}

.date-today {
  color: #83b9f7 !important;
}

.date-current {
  color: #fff !important;
  border-radius: 100%;
}

.chectbt-wrapper {
  margin-top: 20px; // 40rpx / 2
  
  .chectbt-today {
    height: 36px; // 72rpx / 2
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .chectbt {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px; // 40rpx / 2
    font-size: 14px; // 28rpx / 2
    font-family: 'SourceHanSansCN-Regular', sans-serif;
    padding: 0 32px; // 64rpx / 2
    
    .btn {
      width: 122px; // 244rpx / 2
      height: 34px; // 68rpx / 2
      text-align: center;
      align-items: center;
      align-content: center;
      display: flex;
      justify-content: center;
      border-radius: 23px; // 46rpx / 2
      border: 1px solid #3e7ee1; // 2rpx / 2
    }
    
    .resetSelect {
      background-color: #fff;
      color: #3e7ee1;
    }
    
    .confirmSelect {
      color: #ffffff;
      background-color: #3e7ee1;
    }
  }
  
  .chectbt-today__inner {
    width: 36px; // 72rpx / 2
    height: 36px; // 72rpx / 2
    background: linear-gradient(180deg, #3a6ef1 0%, #5e99f5 100%);
    border-radius: 50%;
    font-size: 10px; // 20rpx / 2
    font-family: 'SourceHanSansCN-Regular', sans-serif;
    font-weight: 400;
    color: #ffffff;
    line-height: 12px; // 24rpx / 2
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 7px 8px; // 14rpx / 2, 16rpx / 2
  }
}

.custom-image {
  width: 100% !important;
  
  .van-empty__image {
    height: 100px !important; // 200rpx / 2
    width: 44% !important;
  }
}

.van-empty {
  padding: 0;
}

// Element Plus 对话框样式覆盖
:deep(.el-dialog) {
  border-radius: 8px;
  
  .el-dialog__header {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
  }
  
  .el-dialog__body {
    padding: 20px;
  }
}

// Element Plus 按钮样式覆盖
:deep(.el-button) {
  border-radius: 4px;
  
  &.is-round {
    border-radius: 20px;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .top {
    height: 180px;
  }
  
  .main {
    margin-top: -40px;
    
    &.noLogin {
      margin-top: -60px;
    }
  }
  
  .chectbt-wrapper {
    .chectbt {
      padding: 0 16px;
      
      .btn {
        width: 100px;
        height: 32px;
        font-size: 12px;
      }
    }
    
    .chectbt-today__inner {
      width: 32px;
      height: 32px;
      font-size: 9px;
    }
  }
}

@media (max-width: 480px) {
  .top {
    height: 160px;
  }
  
  .main {
    margin-top: -35px;
    
    &.noLogin {
      margin-top: -50px;
    }
  }
  
  .chectbt-wrapper {
    margin-top: 15px;
    
    .chectbt {
      padding: 0 12px;
      margin-bottom: 15px;
      
      .btn {
        width: 90px;
        height: 30px;
        font-size: 11px;
      }
    }
    
    .chectbt-today__inner {
      width: 30px;
      height: 30px;
      font-size: 8px;
      padding: 6px;
    }
  }
}

// 动画效果
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 0.3s ease;
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(100%);
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  
  &:hover {
    background: #a8a8a8;
  }
}

// 加载状态
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  
  .loading-text {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
  }
}

// 空状态
.empty-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #999;
  
  .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .empty-text {
    font-size: 14px;
  }
}
